@import "iconfont.css";
// 布局页面容器
.editor-page {
  background: #f5f5f5;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.editor-page-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
// 导航
.editor-header {
  height: 80px;
  background: #fff;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
// 左侧面板
.editor-left-panel {
  padding: 10px;
  .panel-title {
    text-align: center;
    line-height: 1.4;
    font-weight: 400;
    h6 {
      font-size: 20px;
    }
  }
  .scrollbar-wrapper {
      padding-top: 20px;
    .wrapper-item-title {
        font-size: 16px;
      color: #333;
    }
    .components-item-row {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 20px;
      .components-item {
        display: flex;
        flex-basis: 45%;
        justify-content: center;
        flex-direction: column;
        color: #424242;
        text-align: center;
        background: #f4f4f4;
        padding: 6px 0;
        margin: 5px;
        border: 1px solid #ddd;
        font-size: 12px;
        cursor: pointer;
        -webkit-transition: All .3s ease-in-out;
        transition: All .3s ease-in-out;
        .components-item-icon {
          width: 100%;
          .icon {
            font-size: 16px;
          }
        }
        .components-item-title {
          font-size: 14px;
          color: #333;
          margin-top: 10px;
        }
      }
    }
  }
}
// 右侧面板
.editor-right-panel {
  padding: 10px;
}
.editor-left-panel, .editor-right-panel {
  height: calc(100vh - 60px );
  position: relative;
  background: #fff;
  overflow: hidden;
}
// 画板
.canvas-panel-container {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 10px;
}
.canvas-panel {
  width: 375px;
  height: 644px;
  background-image: url('~@/assets/canvas.png');
  background-repeat: repeat;
  background-color: #fff;
  margin-top: 20px;
  position: relative;
  .canvas-panel-tools {
    position: absolute;
    width: 80px;
    padding: 20px 0;
    height: auto;
    z-index: 10;
    top: 20px;
    right: -100px;
    background: #fff;
    .tools-menu-item {
      padding: 10px 0;
      transition: all .3s;
      .iconfont {
        font-size: 20px;
        font-weight: 400;
        color: #333;
      }
      &:hover {
        background: #abcbec;
        .iconfont {
        }
      }
    }
  }
}
